import { PageView } from '@/layouts';

export default {
	path: '/alert',
	name: 'alert',
	redirect: '/alert/Trigger',
	component: PageView,
	meta: {
		title: '报警信息',
		icon: 'bulb',
		permission: [ 'alarmMessage' ]
	},
	children: [{
		path: '/alert/Trigger',
		name: 'AlertTriggerForm',
		component: () => import('@/views/alert/Trigger'),
		meta: {
			title: '触发器列表',
			permission: [ 'alarmTrigger_list' ]
		},
	},
	{
		path: '/alert/AddTrigger',
		name: 'AlertAddTriggerAdd',
		component: () => import('@/views/alert/AddTrigger'),
		meta: {
			title: '添加触发器',
			permission: [ 'alarmTrigger_add' ]
			// keepAlive: true
		},
	},
	{
		path: '/alert/editTrigger/:id',
		name: 'AlerteditTriggerEdit',
		component: () => import('@/views/alert/AddTrigger'),
		meta: {
			title: '编辑触发器',
			permission: [ 'alarmTrigger_update' ]
			// keepAlive: true
		},
		hidden: true
	},
	{
		path: '/alert/Contacts',
		name: 'AlertContactsForm',
		component: () => import('@/views/alert/Contacts'),
		meta: {
			title: '报警联系组',
			permission: [ 'alarmGroup_list' ]
		},
	},
	{
		path: '/alert/Record',
		name: 'AlertRecordForm',
		component: () => import('@/views/alert/Record'),
		meta: {
			title: '报警记录',
			permission: [ 'alarmRecord_list' ]
		},
	},
	{
		path: '/alert/detail/:id',
		name: 'AlertdetailForm',
		component: () => import('@/views/alert/detail'),
		meta: {
			title: '报警详情',
		},
		hidden: true
	},

	],
};
